package com.bdqn.t350.vue.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.t350.vue.bean.Dto;
import com.bdqn.t350.vue.bean.User;

import java.util.List;

public interface UserService {


    /**
     * 根据用户名查询，登录时使用
     *
     * @param usrName
     * @return
     */
    public User selectByName(String usrName);

    IPage<User> selectPage(IPage<User> page, QueryWrapper queryWrapper);

    int insert(User user);

    int deleteById(int id);

    int updateById(User user);

    public Dto login(User user);

    Dto logout();
}
